#include    <stdio.h>

#pragma warning (disable:4996)

double fun(double  x, int  n)

{  double  f, t;      int  i;

   f = 1.0;

/**********found**********/

   t = 1;

/**********found**********/

   for (i=1; i<n; i++)

   {

/**********found**********/

       t *= x/i;

       f += t;

   }

   return  f;

}

main()

{  double  x, y;

   x=2.5;

   y = fun(x, 12);

   printf("\nThe result is :\n");

   printf("x=%-12.6f     y=%-12.6f\n", x, y);

}

